﻿using System.ComponentModel.DataAnnotations.Schema;

namespace EvaluationSystem.Models;

public class Comment
{
    public int CommentId { get; set; }

    public string? Content { get; set; }

    public DateTime CreatedAt { get; set; } = DateTime.Now;

    /// <summary>
    /// 评教id
    /// </summary>
    public int? ScId { get; set; }
    [NotMapped]
    public StudentEvalCourse? StudentEvalCourse { get; set; }

    /// <summary>
    /// 发布人id
    /// </summary>
    public int? PublisherId { get; set; }
    [NotMapped]
    public People? Publisher { get; set; }

    /// <summary>
    /// 回复人id
    /// </summary>
    public int? ReplierId { get; set; }
    [NotMapped]
    public People? Replier { get; set; }
}